package com.app.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_military_sports")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MilitarySportsModel {
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;
    @ExcelIgnore
    private Integer departmentId;//单位id
    @ExcelProperty(index = 0)
    private Integer number;  //序号
    @ExcelProperty(index = 1)
    @TableField(exist = false)
    private String departmentName;//单位名称
    @ExcelProperty(index = 2)
    private String name;//姓名
    @ExcelProperty(index = 3)
    private String personnelCategory;//人员类别
    private Integer gender;//性别
    @ExcelProperty(index = 4)
    @TableField(exist = false)
    private String genderText;//性别
    @ExcelProperty(index = 5)
    private Integer age;//年龄
    @ExcelProperty(index = 6)
    private Double weight;//体重
    @ExcelProperty(index = 7)
    private Double height;//身高
    @ExcelProperty(index = 8)
    private Double bmi;//BMI
    @ExcelProperty(index = 9)
    private String shape;//体型评定
    @ExcelProperty(index = 10)
    private Integer sitUpsNumber;//仰卧起坐个数
    @ExcelProperty(index = 11)
    private Double sitUpsFraction;//仰卧起坐分数
    @ExcelProperty(index = 12)
    private String snakeRunTime;//蛇形跑时间
    @ExcelProperty(index = 13)
    private Double snakeRunFraction;//蛇形跑分数
    @ExcelProperty(index = 14)
    private String threeTime;//3000米时间
    @ExcelProperty(index = 15)
    private Double threeFraction;//3000米分数
    @ExcelProperty(index = 16)
    private Integer testNumber;//体测个数
    @ExcelProperty(index = 17)
    private String testTime;//体测时间
    @ExcelProperty(index = 18)
    private Double testFraction;//体测分数
    @ExcelProperty(index = 19)
    private Integer totalScore;//总分
    @ExcelProperty(index = 20)
    private String gradeLevel;//成绩等级

    @ExcelIgnore
    private Timestamp createTime;//
    @ExcelIgnore
    private Timestamp updateTime;//
}
